home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
pcrlg111.zip
/
EXAMPLE.TXT
next >
Wrap
Text File
|
1992-03-09
|
5KB
|
90 lines
This program was created to provide a "fair share" basis for
sharing long distance charges for the hub between all the local nodes.
Provisions have been provided for "excluding" nodes that connect
long distance because it isn't fair to charge long distance nodes on
the same basis as locals nodes.
This is an example file returned. I directed the info into a text
file for reference and distribution to participating nodes as
representation of their "fair share" for L/D phone expenses to the hub.
The dollar values and dates are fictitious but the data was drawn from my
daily hub log created by PCRelay named HUB.LOG.
An example of my command line used is as follows;
pcrlog hub.log /cpcrlog1.cfg > actvty1.txt
[ By naming the config file, I could return several variations using ]
[ different configuration and log files if different networks were ]
[ involved, otherwise it would not normally be needed, defaulting to ]
[ PCRLOG.CFG. ]
The config file, PCRLOG1.CFG;
BeginDate=11/08/91
EndDate=01/15/92
* Include= (line not recognized)
* Exclude= (line not recognized)
Dollars=100 (representing $100.00)
Resulting in the following text file, ACTVTY1.TXT;
PCRLOG
Copyright (c) 1992, Mike Bennett
═══════════════════════════════════════════════════════════════════════════
Config: PCRLOG2.CFG HUB Activity 15:05 on 01/26/92
───────────────────────────────────────────────────────────────────────────
Start Date: 11/08/91 End Date: 01/15/92
═══════════════════════════════════════════════════════════════════════════
Node Times on Total Nodes Time HH:MM
Dollars Bytes Received Bytes Sent Total Bytes
% of Total % of Total % of Total
═══════════════════════════════════════════════════════════════════════════
HUB 181 3 22:26
TOTAL 579785 102984028 103563813
═══════════════════════════════════════════════════════════════════════════
THETREE 111 07:21
$53.38 444805 54841884 55286689
0.4295% 52.9547% 53.3842%
TCRSOUTH 42 08:29
$28.15 100706 29051609 29152315
0.0972% 28.0519% 28.1491%
OCALACOM 28 06:36
$18.47 34274 19090535 19124809
0.0331% 18.4336% 18.4667%
The values are based on all bytes uploaded to the hub as
well as bytes downloaded. If a node should send or receive files
they would share the cost based on TOTAL bytes handled through the
hub while connected. Bytes handled provide the most accurate way
of dividing the long distance time incurred. If all nodes were equal
then the division would be equal as well, whether they relayed the
same conferences or not. Those that received or sent files would in
turn reflect a higher byte value and thus a larger share of transfer
charges.
As you can see, information returned can give additional
insight to problems occurring with total time online. I've found
modem configuration problems with nodes by comparing data.
We beat the devil out of the program, using mangled variations
of the log files and all worked well on our systems. Like most, we can
only guarantee that it worked well on our systems. I see no reason for
difficulty operating elsewhere but you know how that goes.
This program has taken quite a bit to write despite it's simple
appearance and due to it's nature, continued use would imply your own
sense of fairness. So with that I say no more and thank you for
registering it and supporting the efforts towards "fair share" shareware.
Frank Fowler
The TREE BBS
HUBTREE